package SingList;

import SingList.MyList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2024-01-30
 * Time: 21:31
 */
public class TestMain {
    public static void main(String[] args) {
        MyList myList = new MyList();
        myList.addFirst(20);
        myList.addFirst(1);
        myList.addFirst(2);
        myList.addFirst(3);
        myList.addFirst(4);
        myList.addFirst(5);

        myList.addIndex(2, 10);

        myList.addLast(20);
        myList.addLast(20);
        myList.addLast(20);
        myList.addLast(20);
        myList.addLast(20);
        myList.addLast(100);

        myList.display();

//        myList.remove(20);
        myList.removeAllKey(20);
        myList.display();

        myList.clear();
        myList.display();
    }
}
